import http from '~/utils/http'

export function login(loginData, userData) {
  return http.post('app.user/login', {
    loginData,
    userData,
  })
}

export function getUserInfo() {
  return http.post('app.user/getUserInfo', {
  })
}

export function updateUserProfile(userData) {
  return http.post('app.user/updateUserProfile', {
    userData,
  })
}

export function updateUserFund(formData) {
  return http.post('app.user/updateUserFund', { formData })
}

// 提现
export function withdrawal() {
  return http.post('app.user/withdrawal', { })
}

// 提现记录
export function getUserWithdrawalList(page, size) {
  return http.post('app.user/getUserWithdrawalList', { page, size })
}
